package cn.wen.yaling.xo.service;

import cn.wen.yaling.commons.utils.ResultEntity;
import cn.wen.yaling.commons.vo.ImageAddVO;
import cn.wen.yaling.commons.vo.ImageUpdateVO;
import com.baomidou.mybatisplus.extension.service.IService;
import cn.wen.yaling.commons.utils.PageUtils;
import cn.wen.yaling.commons.entity.ImageEntity;

import java.util.List;
import java.util.Map;

/**
 * 
 *
 * @author FY
 * @email 932043654@qq.com
 * @date 2022-08-13 02:07:37
 */
public interface ImageService extends IService<ImageEntity> {

    PageUtils queryPage(Map<String, Object> params);

    /**
     * 获取所有的评论头像
     * @return
     */
    List<ImageEntity> getCommentAvatarList();

    /**
     * 通过分类来获取照片列表
     * @param typeId
     * @return
     */
    ResultEntity getImageListByTypeId(Integer typeId);

    /**
     * 添加图片
     * @param imageAddVO
     * @return
     */
    ResultEntity addImage(ImageAddVO imageAddVO);

    /**
     * 修改图片信息
     * @param imageUpdateVO
     * @return
     */
    ResultEntity updateImage(ImageUpdateVO imageUpdateVO);

    /**
     * 批量删除图像信息
     * @param imageIds
     * @return
     */
    ResultEntity deleteBatchImageByIds(List<Integer> imageIds);
}

